package com.zr.serviceImpl;

import com.zr.dao.StudentDao;
import com.zr.daoImpl.StudentDaoImpl;
import com.zr.service.StudentService;

import net.sf.json.JSONArray;

public class StudentServiseImpl implements StudentService{
	StudentDao sdao=new StudentDaoImpl();
	
	
	@Override
	public JSONArray getStudentBySid(int sid) {
		
		return sdao.getStudentBySid(sid);
	}
	@Override
	public  boolean  updateStudent(int sid,String sname,String sage,String ssex,String saddress,String stime,String spnumber){

		return sdao.updateStudent(sid, sname, sage, ssex, saddress, stime, spnumber);
	}
	
	@Override
	public boolean addCourseByCid(int sid,int cid) {
		
		return sdao.addCourseByCid(sid,cid);
	}

	
	


	
}
